package com.service;

import java.util.List;
import com.pojo.Department;

public interface IDepartmentService {
	
	public Department createDepartment(Department department);

	/**
	 * 删除部门
	 * @param departmentId
	 */
	public void deleteDepartment(int departmentId);

	/**
	 * 删除与它关联表的外键
	 * @param departmentId
	 */
	public void deleteDepartments(int departmentId);

	/**
	 * 分页查询
	 * @param page 查询第几页
	 * @param groups 每组个数
	 * @return
	 */
	public List<Department> getDepartments(int page,int groups);
	
	public List<Department> getDepartments();

	public Department getDepartmentByid(int departmentid);

	public Department updateDepartment(Department department);
	
	/**
	 * 获取数据总数
	 * @return
	 */
	public int getCounts();

}
